const list = "apples,bananas;cherries;dddd"

console.log(list.repeat(3));